home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_msql.idb / usr / freeware / src / msql-2.0.3 / patches.z / patches
Encoding:
Text File  |  1998-10-28  |  22.5 KB  |  736 lines

  1. *** ./doc/manual-html/manual.html    Sat Jul 26 05:29:59 1997
  2. --- ../msql-2.0.3/./doc/manual-html/manual.html    Fri Apr 17 09:31:41 1998
  3. ***************
  4. *** 127,133 ****
  5.   </B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">Mini SQL, or mSQL as is it often called, is a light weight relational database management system.  It has been designed to provide rapid access to data sets with as little system overhead as possible.  The system itself is comprised of a database server and various tools that allow a user or a client application to communicate with the server.</P>
  6.   <P ALIGN="JUSTIFY">Although mSQL uses the Structured Query Language (SQL) as its query language, it does not provide a complete implementation of the ANSI standard SQL.  Several features of SQL that are found in more recent versions of the ANSI standard and in more sophisticated database systems are not provided by mSQL.  The incorporation of such features would be in conflict with the basic concept of mSQL (i.e. a Mini database system) and would also increase the load and system requirements needed to run the software.</P>
  7.   <P ALIGN="JUSTIFY">The philosophy of mSQL has been to provide a database management system capable of rapidly handling simple tasks.  It has not been developed for use in critical financial environments (banking applications for example).  The software is capable of performing the supported operations with exceptional speed whilst utilising very few system resources.  Some database systems require high-end hardware platforms and vast quantities of memory before they can provide rapid access to stored data.  mSQL has been designed to provide exceptional data access performance on "small hardware" platforms (such as PC class hardware).  Because of these characteristics, mSQL is well suited to the vast majority of data management tasks.</P>
  8. ! <P ALIGN="JUSTIFY">Although the mSQL software distribution is made available over the Internet (and other mechanisms) it is not public domain software or FreeWare.  mSQL is a commercial, supported software package developed by Hughes Technologies Pty Ltd in Australia.  Use of this software in any commercial environment requires the purchase of a commercial use license from Hughes Technologies.  Free licenses are provided to organisations such as Universities, schools and registered charities in an attempt to maintain the ethos of the original Internet.  For more information on purchasing a license or determining whether you qualify for a free license, please see the Hughes Technologies World Wide Web site at </FONT><A HREF="http://Hughes.com.au/"><FONT SIZE=2>http://Hughes.com.au/</FONT></A><FONT SIZE=2>.</P>
  9.   <P ALIGN="JUSTIFY">Development of mSQL and its associated tools is an ongoing project.  Current releases of the mSQL package and applications that use mSQL are always available from the Hughes Technologies web site.  If you require product support, a new version of the software, or some ideas about using mSQL then please visit our web site.</P></DIR>
  10.   </DIR>
  11.   </DIR>
  12. --- 127,133 ----
  13.   </B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">Mini SQL, or mSQL as is it often called, is a light weight relational database management system.  It has been designed to provide rapid access to data sets with as little system overhead as possible.  The system itself is comprised of a database server and various tools that allow a user or a client application to communicate with the server.</P>
  14.   <P ALIGN="JUSTIFY">Although mSQL uses the Structured Query Language (SQL) as its query language, it does not provide a complete implementation of the ANSI standard SQL.  Several features of SQL that are found in more recent versions of the ANSI standard and in more sophisticated database systems are not provided by mSQL.  The incorporation of such features would be in conflict with the basic concept of mSQL (i.e. a Mini database system) and would also increase the load and system requirements needed to run the software.</P>
  15.   <P ALIGN="JUSTIFY">The philosophy of mSQL has been to provide a database management system capable of rapidly handling simple tasks.  It has not been developed for use in critical financial environments (banking applications for example).  The software is capable of performing the supported operations with exceptional speed whilst utilising very few system resources.  Some database systems require high-end hardware platforms and vast quantities of memory before they can provide rapid access to stored data.  mSQL has been designed to provide exceptional data access performance on "small hardware" platforms (such as PC class hardware).  Because of these characteristics, mSQL is well suited to the vast majority of data management tasks.</P>
  16. ! <P ALIGN="JUSTIFY">Although the mSQL software distribution is made available over the Internet (and other mechanisms) it is not public domain software or FreeWare.  mSQL is a commercial, supported software package developed by Hughes Technologies Pty Ltd in Australia.  Use of this software in any commercial environment requires the purchase of a commercial use license from Hughes Technologies.  Free licenses are provided to organisations such as Universities, schools and registered charities in an attempt to maintain the ethos of the original Internet.  For more information on purchasing a license or determining whether you qualify for a free license, please see the Hughes Technologies World Wide Web site at </FONT><A HREF="http://www.Hughes.com.au/"><FONT SIZE=2>http://www.Hughes.com.au/</FONT></A><FONT SIZE=2>.</P>
  17.   <P ALIGN="JUSTIFY">Development of mSQL and its associated tools is an ongoing project.  Current releases of the mSQL package and applications that use mSQL are always available from the Hughes Technologies web site.  If you require product support, a new version of the software, or some ideas about using mSQL then please visit our web site.</P></DIR>
  18.   </DIR>
  19.   </DIR>
  20. *** ./src/conf/site.mm.in    Sat Jul 26 05:49:59 1997
  21. --- ../msql-2.0.3/./src/conf/site.mm.in    Mon Apr 13 15:45:17 1998
  22. ***************
  23. *** 4,13 ****
  24.   
  25.   
  26.   COMPILER= @CC@
  27. ! INST_DIR= /usr/local/Hughes
  28.   HAVE_DYNAMIC= -DHAVE_DYNAMIC
  29. ! CC_ONLY_FLAGS=
  30. ! LINK_ONLY_FLAGS=
  31.   
  32.   
  33.   #
  34. --- 4,15 ----
  35.   
  36.   
  37.   COMPILER= @CC@
  38. ! INST_DIR= /usr/freeware/msql
  39.   HAVE_DYNAMIC= -DHAVE_DYNAMIC
  40. ! CC_ONLY_FLAGS=  -n32 -O3 -mips3  -nostdinc  -woff 1110,1116,1117,1155,1164,1177,1178,1183  -OPT:Olimit=0 
  41. ! LINK_ONLY_FLAGS= -n32 -mips3 -nostdlib -s
  42. ! MAKE=make
  43. ! SHELL=/bin/sh
  44.   
  45.   
  46.   #
  47. ***************
  48. *** 31,37 ****
  49.   WORKING_RLIMIT= @WORKING_RLIMIT@
  50.   
  51.   # Extra libraries if required
  52. ! EXTRA_LIB= @LIBS@
  53.   
  54.   # Any other CFlags required
  55.   EXTRA_CFLAGS= @DEFS@ $(SSIZE_T) $(U_INT) $(BITTYPES)
  56. --- 33,39 ----
  57.   WORKING_RLIMIT= @WORKING_RLIMIT@
  58.   
  59.   # Extra libraries if required
  60. ! #EXTRA_LIB= @LIBS@
  61.   
  62.   # Any other CFlags required
  63.   EXTRA_CFLAGS= @DEFS@ $(SSIZE_T) $(U_INT) $(BITTYPES)
  64. ***************
  65. *** 39,43 ****
  66.   # Directory for pid file
  67.   PID_DIR= @PID_DIR@
  68.   
  69. ! CFLAGS= -O -I$(TOP)/ $(EXTRA_CFLAGS)
  70. ! LDLIBS= -L$(TOP)/lib $(EXTRA_LIB)
  71. --- 41,45 ----
  72.   # Directory for pid file
  73.   PID_DIR= @PID_DIR@
  74.   
  75. ! CFLAGS= -I$(ROOT)/usr/include -I$(TOP) $(EXTRA_CFLAGS)
  76. ! LDLIBS= -L$(TOP)/regexp -L$(TOP)/msql -L$(TOP)/lib  -L$(ROOT)/usr/lib32 -I$(ROOT)/usr/include -I$(TOP) $(EXTRA_LIB)
  77. *** ./src/lite/lite_lex.c    Wed Sep 24 05:47:08 1997
  78. --- ../msql-2.0.3/./src/lite/lite_lex.c    Sun Apr 12 17:43:05 1998
  79. ***************
  80. *** 78,84 ****
  81.   ** Debugging macros.
  82.   */
  83.   
  84. ! /* #define DEBUG_STATE    /* Define this to watch the state transitions */
  85.   
  86.   #ifdef LEX_DEBUG
  87.   #  define token(x)    (int) "x"
  88. --- 78,87 ----
  89.   ** Debugging macros.
  90.   */
  91.   
  92. ! /*
  93. ! #define DEBUG_STATE    
  94. ! */
  95. ! /* Define this to watch the state transitions */
  96.   
  97.   #ifdef LEX_DEBUG
  98.   #  define token(x)    (int) "x"
  99. *** ./src/msql/msqld.c    Wed Sep 24 07:11:35 1997
  100. --- ../msql-2.0.3/./src/msql/msqld.c    Sun Apr 12 19:23:07 1998
  101. ***************
  102. *** 643,649 ****
  103.   
  104.       if (*confFile == 0)
  105.       {
  106. !         snprintf(confFile,sizeof(confFile),"%s/msql.conf", INST_DIR);
  107.       }
  108.       printf("\tLoading configuration from '%s'.\n",confFile);
  109.       msqlLoadConfigFile(confFile);
  110. --- 643,649 ----
  111.   
  112.       if (*confFile == 0)
  113.       {
  114. !         snprintf(confFile,sizeof(confFile),"%s/etc/msql.conf", INST_DIR);
  115.       }
  116.       printf("\tLoading configuration from '%s'.\n",confFile);
  117.       msqlLoadConfigFile(confFile);
  118. *** ./src/msql/msqladmin.c    Mon Jul 14 20:34:04 1997
  119. --- ../msql-2.0.3/./src/msql/msqladmin.c    Sun Apr 12 19:22:46 1998
  120. ***************
  121. *** 339,345 ****
  122.           printf("\tTarget platform \t%s\n\n",TARGET);
  123.   
  124.           printf("Configuration Details :-\n\n");
  125. !         printf("\tDefault config file\t%s/msql.conf\n",INST_DIR);
  126.           printf("\tTCP socket         \t%d\n", 
  127.               msqlGetIntConf("general", "tcp_port"));
  128.           printf("\tUNIX socket        \t%s\n", 
  129. --- 339,345 ----
  130.           printf("\tTarget platform \t%s\n\n",TARGET);
  131.   
  132.           printf("Configuration Details :-\n\n");
  133. !         printf("\tDefault config file\t%s/etc/msql.conf\n",INST_DIR);
  134.           printf("\tTCP socket         \t%d\n", 
  135.               msqlGetIntConf("general", "tcp_port"));
  136.           printf("\tUNIX socket        \t%s\n", 
  137. *** ./src/msql/config.c    Sun Sep 14 00:06:34 1997
  138. --- ../msql-2.0.3/./src/msql/config.c    Sun Apr 12 19:22:10 1998
  139. ***************
  140. *** 324,330 ****
  141.       }
  142.       else
  143.       {
  144. !         snprintf(buf,sizeof(buf),"%s/msql.conf", INST_DIR);
  145.           fp = fopen(buf,"r");
  146.       }
  147.       if (!fp)
  148. --- 324,330 ----
  149.       }
  150.       else
  151.       {
  152. !         snprintf(buf,sizeof(buf),"%s/etc/msql.conf", INST_DIR);
  153.           fp = fopen(buf,"r");
  154.       }
  155.       if (!fp)
  156. *** ./src/tests/rtest    Sun Sep 21 04:13:32 1997
  157. --- ../msql-2.0.3/./src/tests/rtest    Fri Apr 17 09:23:45 1998
  158. ***************
  159. *** 37,46 ****
  160.   #
  161.   # Where are the programs we need
  162.   #
  163.   #MSQLADMIN="/usr/local/Hughes/bin/msqladmin"
  164. ! MSQLADMIN="../../msql/msqladmin"
  165. ! MSQL="/usr/local/Hughes/bin/msql $MSQLHOST"
  166. ! #MSQL="../../msql/msql"
  167.   
  168.   #
  169.   # How can we echo without a newline?
  170. --- 37,48 ----
  171.   #
  172.   # Where are the programs we need
  173.   #
  174. + MSQL_HOME=/usr/freeware/msql
  175. + MSQLADMIN="$MSQL_HOME/bin/msqladmin"
  176. + MSQL="$MSQL_HOME/bin/msql $MSQLHOST"
  177.   #MSQLADMIN="/usr/local/Hughes/bin/msqladmin"
  178. ! #MSQL="/usr/local/Hughes/bin/msql $MSQLHOST"
  179.   
  180.   #
  181.   # How can we echo without a newline?
  182. *** ./src/tests/cachetest    Sun Apr  6 01:55:39 1997
  183. --- ../msql-2.0.3/./src/tests/cachetest    Fri Apr 17 09:24:04 1998
  184. ***************
  185. *** 99,102 ****
  186.           echo "select * from test9 \p\g"
  187.           COUNT=`expr $COUNT + 1`
  188.       done
  189. ! ) | ../msql/msql $DB
  190. --- 99,102 ----
  191.           echo "select * from test9 \p\g"
  192.           COUNT=`expr $COUNT + 1`
  193.       done
  194. ! ) | ../bin/msql $DB
  195. *** ./src/tests/killer    Sun Sep 21 04:49:43 1997
  196. --- ../msql-2.0.3/./src/tests/killer    Fri Apr 17 09:22:40 1998
  197. ***************
  198. *** 20,27 ****
  199.   DROP="drop table test"
  200.   DELETE="delete from test"
  201.   
  202. ! TMP_FILE="/tmp/msql_test.out"
  203. ! RES_FILE="./msql.times"
  204.   
  205.   DB=$1
  206.   NUM_TESTS=2
  207. --- 20,28 ----
  208.   DROP="drop table test"
  209.   DELETE="delete from test"
  210.   
  211. ! MSQL_HOME=/usr/freeware/msql
  212. ! TMP_FILE="$MSQL_HOME/tests/msql_test.out"
  213. ! RES_FILE="$MSQL_HOME/tests/msql.times"
  214.   
  215.   DB=$1
  216.   NUM_TESTS=2
  217. ***************
  218. *** 29,42 ****
  219.   NUM_SELECTS=25000
  220.   SEQ_SELECTS=2000
  221.   
  222. ! CALC="bc -l"
  223. ! PID_FILE="/var/adm/msqld.pid"
  224.   
  225.   #MSQL_HOST="-h fawn"
  226.   
  227. ! MSQL="../msql/msql $MSQL_HOST"
  228.   #MSQL="/usr/local/Hughes/bin/msql $MSQL_HOST"
  229. - MSQL_ADMIN="../msql/msqladmin $MSQL_HOST"
  230.   #MSQL_ADMIN="/usr/local/Hughes/bin/msqladmin $MSQL_HOST"
  231.   
  232.   PROFILE="N"
  233. --- 30,44 ----
  234.   NUM_SELECTS=25000
  235.   SEQ_SELECTS=2000
  236.   
  237. ! CALC="/usr/bin/bc -l"
  238. ! PID_FILE="$MSQL_HOME/msql2d.pid"
  239.   
  240.   #MSQL_HOST="-h fawn"
  241.   
  242. ! MSQL="$MSQL_HOME/bin/msql $MSQL_HOST"
  243. ! MSQL_ADMIN="$MSQL_HOME/bin/msqladmin $MSQL_HOST"
  244.   #MSQL="/usr/local/Hughes/bin/msql $MSQL_HOST"
  245.   #MSQL_ADMIN="/usr/local/Hughes/bin/msqladmin $MSQL_HOST"
  246.   
  247.   PROFILE="N"
  248. ***************
  249. *** 124,130 ****
  250.   then
  251.       kill -INT `cat $PID_FILE`
  252.       sleep 1
  253. !     ../msql/msqld&
  254.       sleep 1
  255.   fi
  256.   echo "Inserting $NUM_INSERTS rows into new keyed table gave :-" >> $RES_FILE
  257. --- 126,132 ----
  258.   then
  259.       kill -INT `cat $PID_FILE`
  260.       sleep 1
  261. !     $MSQL_HOME/bin/msql2d&
  262.       sleep 1
  263.   fi
  264.   echo "Inserting $NUM_INSERTS rows into new keyed table gave :-" >> $RES_FILE
  265. ***************
  266. *** 136,142 ****
  267.       echo "$CREATE_TABLE \p\g" | ($MSQL $DB > /dev/null)
  268.       echo "$CREATE_INDEX \p\g" | ($MSQL $DB > /dev/null)
  269.       echo "Inserting $NUM_INSERTS rows into keyed table"
  270. !     $BIN_TIME ../msql/insert_test $MSQL_HOST $DB $NUM_INSERTS 2> $TMP_FILE 3>/dev/tty
  271.       if test $? -ne 0
  272.       then
  273.           echo
  274. --- 138,144 ----
  275.       echo "$CREATE_TABLE \p\g" | ($MSQL $DB > /dev/null)
  276.       echo "$CREATE_INDEX \p\g" | ($MSQL $DB > /dev/null)
  277.       echo "Inserting $NUM_INSERTS rows into keyed table"
  278. !     $BIN_TIME $MSQL_HOME/tests/insert_test $MSQL_HOST $DB $NUM_INSERTS 2> $TMP_FILE 3>/dev/tty
  279.       if test $? -ne 0
  280.       then
  281.           echo
  282. ***************
  283. *** 163,169 ****
  284.       sleep 1
  285.       echo >> $RES_FILE
  286.       echo >> $RES_FILE
  287. !     prof ../msql/msqld | head -10 >> $RES_FILE
  288.   fi
  289.   
  290.   echo >> $RES_FILE
  291. --- 165,171 ----
  292.       sleep 1
  293.       echo >> $RES_FILE
  294.       echo >> $RES_FILE
  295. !     prof $MSQL_HOME/bin/msql2d | head -10 >> $RES_FILE
  296.   fi
  297.   
  298.   echo >> $RES_FILE
  299. ***************
  300. *** 181,187 ****
  301.   TOTAL=0
  302.   if test "$PROFILE." = "Y."
  303.   then
  304. !     ../msql/msqld&
  305.       sleep 1
  306.   fi
  307.   echo "Filling a deleted keyed table with $NUM_INSERTS rows gave :-" >> $RES_FILE
  308. --- 183,189 ----
  309.   TOTAL=0
  310.   if test "$PROFILE." = "Y."
  311.   then
  312. !     $MSQL_HOME/bin/msql2d&
  313.       sleep 1
  314.   fi
  315.   echo "Filling a deleted keyed table with $NUM_INSERTS rows gave :-" >> $RES_FILE
  316. ***************
  317. *** 190,196 ****
  318.       echo "Deleting contents of keyed table"
  319.       echo "$DELETE \p\g" | ($MSQL $DB > /dev/null)
  320.       echo "Filling data holes with $NUM_INSERTS inserts."
  321. !     $BIN_TIME ../msql/insert_test $MSQL_HOST $DB $NUM_INSERTS 2> $TMP_FILE
  322.       if test $? -ne 0
  323.       then
  324.           echo
  325. --- 192,198 ----
  326.       echo "Deleting contents of keyed table"
  327.       echo "$DELETE \p\g" | ($MSQL $DB > /dev/null)
  328.       echo "Filling data holes with $NUM_INSERTS inserts."
  329. !     $BIN_TIME $MSQL_HOME/tests/insert_test $MSQL_HOST $DB $NUM_INSERTS 2> $TMP_FILE
  330.       if test $? -ne 0
  331.       then
  332.           echo
  333. ***************
  334. *** 217,223 ****
  335.       sleep 1
  336.       echo >> $RES_FILE
  337.       echo >> $RES_FILE
  338. !     prof ../msql/msqld | head -10 >> $RES_FILE
  339.   fi
  340.   
  341.   echo >> $RES_FILE
  342. --- 219,225 ----
  343.       sleep 1
  344.       echo >> $RES_FILE
  345.       echo >> $RES_FILE
  346. !     prof $MSQL_HOME/bin/msql2d | head -10 >> $RES_FILE
  347.   fi
  348.   
  349.   echo >> $RES_FILE
  350. ***************
  351. *** 238,244 ****
  352.   TOTAL=0
  353.   if test "$PROFILE." = "Y."
  354.   then
  355. !     ../msql/msqld&
  356.       sleep 1
  357.   fi
  358.   echo "Selecting $NUM_SELECTS rows using primary key :-" >> $RES_FILE
  359. --- 240,246 ----
  360.   TOTAL=0
  361.   if test "$PROFILE." = "Y."
  362.   then
  363. !     $MSQL_HOME/bin/msql2d&
  364.       sleep 1
  365.   fi
  366.   echo "Selecting $NUM_SELECTS rows using primary key :-" >> $RES_FILE
  367. ***************
  368. *** 245,251 ****
  369.   while test $COUNT -lt $NUM_TESTS
  370.   do
  371.       echo "Selecting $NUM_SELECTS rows from a keyed table"
  372. !     $BIN_TIME ../msql/select_test $MSQL_HOST $DB $NUM_SELECTS 2> $TMP_FILE
  373.       if test $? -ne 0
  374.       then
  375.           echo
  376. --- 247,253 ----
  377.   while test $COUNT -lt $NUM_TESTS
  378.   do
  379.       echo "Selecting $NUM_SELECTS rows from a keyed table"
  380. !     $BIN_TIME $MSQL_HOME/tests/select_test $MSQL_HOST $DB $NUM_SELECTS 2> $TMP_FILE
  381.       if test $? -ne 0
  382.       then
  383.           echo
  384. ***************
  385. *** 272,278 ****
  386.       sleep 1
  387.       echo >> $RES_FILE
  388.       echo >> $RES_FILE
  389. !     prof ../msql/msqld | head -10 >> $RES_FILE
  390.   fi
  391.   
  392.   echo >> $RES_FILE
  393. --- 274,280 ----
  394.       sleep 1
  395.       echo >> $RES_FILE
  396.       echo >> $RES_FILE
  397. !     prof $MSQL_HOME/bin/msql2d | head -10 >> $RES_FILE
  398.   fi
  399.   
  400.   echo >> $RES_FILE
  401. ***************
  402. *** 293,299 ****
  403.   TOTAL=0
  404.   if test "$PROFILE." = "Y."
  405.   then
  406. !     ../msql/msqld&
  407.       sleep 1
  408.   fi
  409.   echo "Inserting $NUM_INSERTS rows into new flat table gave :-" >> $RES_FILE
  410. --- 295,301 ----
  411.   TOTAL=0
  412.   if test "$PROFILE." = "Y."
  413.   then
  414. !     $MSQL_HOME/bin/msql2d&
  415.       sleep 1
  416.   fi
  417.   echo "Inserting $NUM_INSERTS rows into new flat table gave :-" >> $RES_FILE
  418. ***************
  419. *** 304,310 ****
  420.       echo "Creating flat table"
  421.       echo "$CREATE_TABLE \p\g" | ($MSQL $DB > /dev/null)
  422.       echo "Inserting $NUM_INSERTS rows into flat table"
  423. !     $BIN_TIME ../msql/insert_test $MSQL_HOST $DB $NUM_INSERTS 2> $TMP_FILE
  424.       if test $? -ne 0
  425.       then
  426.           echo
  427. --- 306,312 ----
  428.       echo "Creating flat table"
  429.       echo "$CREATE_TABLE \p\g" | ($MSQL $DB > /dev/null)
  430.       echo "Inserting $NUM_INSERTS rows into flat table"
  431. !     $BIN_TIME $MSQL_HOME/tests/insert_test $MSQL_HOST $DB $NUM_INSERTS 2> $TMP_FILE
  432.       if test $? -ne 0
  433.       then
  434.           echo
  435. ***************
  436. *** 331,337 ****
  437.       sleep 1
  438.       echo >> $RES_FILE
  439.       echo >> $RES_FILE
  440. !     prof ../msql/msqld | head -10 >> $RES_FILE
  441.   fi
  442.   
  443.   echo >> $RES_FILE
  444. --- 333,339 ----
  445.       sleep 1
  446.       echo >> $RES_FILE
  447.       echo >> $RES_FILE
  448. !     prof $MSQL_HOME/bin/msql2d | head -10 >> $RES_FILE
  449.   fi
  450.   
  451.   echo >> $RES_FILE
  452. ***************
  453. *** 349,355 ****
  454.   TOTAL=0
  455.   if test "$PROFILE." = "Y."
  456.   then
  457. !     ../msql/msqld&
  458.       sleep 1
  459.   fi
  460.   echo "Filling a deleted flat table with $NUM_INSERTS rows gave :-" >> $RES_FILE
  461. --- 351,357 ----
  462.   TOTAL=0
  463.   if test "$PROFILE." = "Y."
  464.   then
  465. !     $MSQL_HOME/bin/msql2d&
  466.       sleep 1
  467.   fi
  468.   echo "Filling a deleted flat table with $NUM_INSERTS rows gave :-" >> $RES_FILE
  469. ***************
  470. *** 358,364 ****
  471.       echo "Deleting contents of flat table"
  472.       echo "$DELETE \p\g" | ($MSQL $DB > /dev/null)
  473.       echo "Filling data holes with $NUM_INSERTS inserts."
  474. !     $BIN_TIME ../msql/insert_test $MSQL_HOST $DB $NUM_INSERTS 2> $TMP_FILE
  475.       if test $? -ne 0
  476.       then
  477.           echo
  478. --- 360,366 ----
  479.       echo "Deleting contents of flat table"
  480.       echo "$DELETE \p\g" | ($MSQL $DB > /dev/null)
  481.       echo "Filling data holes with $NUM_INSERTS inserts."
  482. !     $BIN_TIME $MSQL_HOME/tests/insert_test $MSQL_HOST $DB $NUM_INSERTS 2> $TMP_FILE
  483.       if test $? -ne 0
  484.       then
  485.           echo
  486. ***************
  487. *** 385,391 ****
  488.       sleep 1
  489.       echo >> $RES_FILE
  490.       echo >> $RES_FILE
  491. !     prof ../msql/msqld | head -10 >> $RES_FILE
  492.   fi
  493.   
  494.   echo >> $RES_FILE
  495. --- 387,393 ----
  496.       sleep 1
  497.       echo >> $RES_FILE
  498.       echo >> $RES_FILE
  499. !     prof $MSQL_HOME/bin/msql2d | head -10 >> $RES_FILE
  500.   fi
  501.   
  502.   echo >> $RES_FILE
  503. ***************
  504. *** 404,410 ****
  505.   TOTAL=0
  506.   if test "$PROFILE." = "Y."
  507.   then
  508. !     ../msql/msqld&
  509.       sleep 1
  510.   fi
  511.   echo "Selecting $SEQ_SELECTS rows without a key :-" >> $RES_FILE
  512. --- 406,412 ----
  513.   TOTAL=0
  514.   if test "$PROFILE." = "Y."
  515.   then
  516. !     $MSQL_HOME/bin/msql2d&
  517.       sleep 1
  518.   fi
  519.   echo "Selecting $SEQ_SELECTS rows without a key :-" >> $RES_FILE
  520. ***************
  521. *** 411,417 ****
  522.   while test $COUNT -lt $NUM_TESTS
  523.   do
  524.       echo "Selecting $SEQ_SELECTS rows from a flat table"
  525. !     $BIN_TIME ../msql/select_test $MSQL_HOST $DB $SEQ_SELECTS 2> $TMP_FILE
  526.       if test $? -ne 0
  527.       then
  528.           echo
  529. --- 413,419 ----
  530.   while test $COUNT -lt $NUM_TESTS
  531.   do
  532.       echo "Selecting $SEQ_SELECTS rows from a flat table"
  533. !     $BIN_TIME $MSQL_HOME/tests/select_test $MSQL_HOST $DB $SEQ_SELECTS 2> $TMP_FILE
  534.       if test $? -ne 0
  535.       then
  536.           echo
  537. ***************
  538. *** 438,444 ****
  539.       sleep 1
  540.       echo >> $RES_FILE
  541.       echo >> $RES_FILE
  542. !     prof ../msql/msqld | head -10 >> $RES_FILE
  543.   fi
  544.   
  545.   echo >> $RES_FILE
  546. --- 440,446 ----
  547.       sleep 1
  548.       echo >> $RES_FILE
  549.       echo >> $RES_FILE
  550. !     prof $MSQL_HOME/bin/msql2d | head -10 >> $RES_FILE
  551.   fi
  552.   
  553.   echo >> $RES_FILE
  554. *** ./src/w3-msql/auth.c    Sat Aug 16 22:44:40 1997
  555. --- ../msql-2.0.3/./src/w3-msql/auth.c    Sat Apr  4 15:09:26 1998
  556. ***************
  557. *** 376,382 ****
  558.       /*
  559.       ** Get everything we might need organised
  560.       */
  561. !     authHost = msqlGetCharConf("w3-msql","auth_host");
  562.       sock = msqlConnect(authHost);
  563.       if (sock < 0)
  564.       {
  565. --- 376,382 ----
  566.       /*
  567.       ** Get everything we might need organised
  568.       */
  569. !     authHost = (char *)msqlGetCharConf("w3-msql","auth_host");
  570.       sock = msqlConnect(authHost);
  571.       if (sock < 0)
  572.       {
  573. *** ./src/w3-msql/lexer.c    Sat Aug 16 22:44:40 1997
  574. --- ../msql-2.0.3/./src/w3-msql/lexer.c    Sun Apr 12 17:46:48 1998
  575. ***************
  576. *** 79,85 ****
  577.   ** Debugging macros.
  578.   */
  579.   
  580. ! /* #define DEBUG_STATE    /* Define this to watch the state transitions */
  581.   
  582.   #ifdef LEX_DEBUG
  583.   #  define token(x)    (int) "x"
  584. --- 79,88 ----
  585.   ** Debugging macros.
  586.   */
  587.   
  588. ! /*
  589. ! #define DEBUG_STATE    
  590. ! */
  591. ! /* Define this to watch the state transitions */
  592.   
  593.   #ifdef LEX_DEBUG
  594.   #  define token(x)    (int) "x"
  595. *** ./misc/setup_w3auth    Tue Oct  7 14:39:01 1997
  596. --- ../msql-2.0.3/./misc/setup_w3auth    Mon Apr 13 16:39:47 1998
  597. ***************
  598. *** 1,4 ****
  599. ! #!/usr/local/Hughes/bin/lite
  600.   
  601.   
  602.   /*
  603. --- 1,4 ----
  604. ! #!/usr/freeware/msql/bin/lite
  605.   
  606.   
  607.   /*
  608. ***************
  609. *** 15,21 ****
  610.   */
  611.   
  612.   echo ("Creating the empty database ...");
  613. ! if (system("/usr/local/Hughes/bin/msqladmin create w3-msql") != 0)
  614.   {
  615.       fatal("\nError :  creating databases");
  616.       exit(1);
  617. --- 15,21 ----
  618.   */
  619.   
  620.   echo ("Creating the empty database ...");
  621. ! if (system("/usr/freeware/msql/bin/msqladmin create w3-msql") != 0)
  622.   {
  623.       fatal("\nError :  creating databases");
  624.       exit(1);
  625. *** ./misc/msql.conf    Sun Jul  6 22:44:29 1997
  626. --- ../msql-2.0.3/./misc/msql.conf    Mon Apr 13 16:38:09 1998
  627. ***************
  628. *** 17,23 ****
  629.   
  630.   [general]
  631.   
  632. ! Inst_Dir = _INST_
  633.   mSQL_User = msql
  634.   Admin_User = root
  635.   Pid_File = %I/msql2d.pid
  636. --- 17,23 ----
  637.   
  638.   [general]
  639.   
  640. ! #Inst_Dir = _INST_
  641.   mSQL_User = msql
  642.   Admin_User = root
  643.   Pid_File = %I/msql2d.pid
  644. *** ./scripts/sys-arch    Sun Jan  5 14:13:14 1997
  645. --- ../msql-2.0.3/./scripts/sys-arch    Sat Apr  4 13:25:22 1998
  646. ***************
  647. *** 49,52 ****
  648.       rev="$maj.$min"
  649.   fi
  650.   
  651. ! echo "${os}-${rev}-${machine}" | sed 's/ /_/g'
  652. --- 49,56 ----
  653.       rev="$maj.$min"
  654.   fi
  655.   
  656. ! if test "$os" = "IRIX" || test "$os" = "IRIX64" 
  657. !     then echo "IRIX"
  658. ! else 
  659. !     echo "${os}-${rev}-${machine}" | sed 's/ /_/g' 
  660. ! fi
  661. *** ./scripts/make-target    Sun Jan  5 14:13:14 1997
  662. --- ../msql-2.0.3/./scripts/make-target    Sat Apr  4 13:46:40 1998
  663. ***************
  664. *** 23,40 ****
  665.   TARG=`scripts/sys-arch` 
  666.   if test -d targets/${TARG}
  667.   then 
  668. !     ${ECHO_N} "Target directory for ${TARG} exists! ${ECHO_C}"
  669. !     ${ECHO_N} "Clear it? [y/n] ${ECHO_C} "
  670. !     read ANS 
  671. !     if test ${ANS}"." = "y." 
  672. !     then 
  673. !         echo "Clearing old target directory for ${TARG}" 
  674. !         rm -rf targets/${TARG}
  675. !     else 
  676. !         echo 
  677. !         echo "OK. I'll fill the gaps (there will be warnings)"
  678. !         echo 
  679. !     fi
  680.   fi
  681.   
  682.   
  683. --- 23,30 ----
  684.   TARG=`scripts/sys-arch` 
  685.   if test -d targets/${TARG}
  686.   then 
  687. !     echo "Targets exists ... Exiting"
  688. !     exit
  689.   fi
  690.   
  691.   
  692. *** ./Makefile    Sun Jan  5 14:11:42 1997
  693. --- ../msql-2.0.3/./Makefile    Mon Apr  6 05:16:21 1998
  694. ***************
  695. *** 17,26 ****
  696.   
  697.   SHELL=/bin/sh
  698.   
  699. ! all:
  700. !     @ echo ""; echo "You have not read the installation procedures.";\
  701. !     echo "Please read the README file for build instructions.";\
  702. !     echo
  703.   
  704.   target:
  705.       @ scripts/make-target
  706. --- 17,23 ----
  707.   
  708.   SHELL=/bin/sh
  709.   
  710. ! all: target setup compile
  711.   
  712.   target:
  713.       @ scripts/make-target
  714. ***************
  715. *** 39,41 ****
  716. --- 36,52 ----
  717.       done ;\
  718.       tar -cvf $$TAR_FILE -I /tmp/dist.files ;\
  719.       echo; echo "Archive of full distribution complete"
  720. + #Added for SGI Freeware builds
  721. + setup:
  722. +     cd targets/IRIX ; ./setup 
  723. + compile:
  724. +     cd ./targets/IRIX; make all
  725. + clean:
  726. +     rm -rf targets/IRIX
  727. + install:
  728. +     cd ./targets/IRIX; make install 
  729.